<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<div class="side">
    <!--公告列表-->
    <div class="news-list">
        <h4>最新公告</h4>
        <ul>
            <c:forEach items="${notices}" var="notice">
                <li><a href="noticeServlet?noticeId=${notice.id}">${notice.title}</a></li>
            </c:forEach>
        </ul>
    </div>
    <div class="spacer "></div>
    <!--新闻列表-->
    <div class="news-list">
        <h4>新闻动态</h4>
        <ul>
            <c:forEach items="${news}" var="news">
                <li><a href="newsServlet?newsId=${news.id}">${news.title}</a></li>
            </c:forEach>
        </ul>
    </div>
</div>
<div class="spacer clear"></div>